﻿@using SIG.Basic.Helper
@model SIG.Model.ViewModel.Identity.LoginVM

@{
    ViewBag.Title = "登录";
    Layout = "~/Views/Shared/_LoginLayout.cshtml";
}

<section class="login-container">
    <div class="panel panel-default">

        <div class="panel-heading text-center">
            <img src="/Content/Login/img/logo.png" alt="管理登录" />
        </div>
        <div class="panel-body">
            <div class="container-fluid">
                @using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
            {

                    @Html.AntiForgeryToken()
                    @Html.ValidationSummary(true)
                   
                    <div class="form-group">
                        @Html.LabelFor(model => model.UserName)
                        @Html.TextBoxFor(m => m.UserName, new { @class = "form-control", placeholder = "用户名" })
                        @Html.ValidationMessageFor(m => m.UserName)
                    </div>
                    <div class="form-group">
                        @Html.LabelFor(model => model.Password)
                        @Html.PasswordFor(m => m.Password, new { @class = "form-control", placeholder = "密码" })
                        @Html.ValidationMessageFor(m => m.Password)
                    </div>

                    <div class="form-group">
                        <div class="checkbox">
                            <label>
                                @Html.CheckBoxFor(m => m.RememberMe) 记住我
                            </label>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="input-group">                   
                            @Html.TextBoxFor(m => m.CaptchaText, new { @class = "form-control", placeholder = "验证码", aria_describedby = "basic-addon2" })
                            <span class="input-group-addon" id="basic-addon2" style="padding:0;" ><img src='@Url.Action("ShowCaptchaImage","Account")' alt="验证码" /></span>
                        </div>
                        @Html.ValidationMessageFor(m => m.CaptchaText)
                    </div>
                        
                       
                        <div class="form-group">
                            <input type="submit" class="btn btn-primary btn-block" value="登录" />
                        </div>
                        }
                    </div>



        </div>
        <div class="panel-footer text-center">
            <small>Powered by <a href="//heiniaozhi.cn">BBICMS</a> @SettingsManager.Site.Version</small>
        </div>
    </div>

</section>

@*<div class="col-md-4">
    <section id="socialLoginForm">
        @Html.Partial("_ExternalLoginsListPartial", new ExternalLoginListViewModel { ReturnUrl = ViewBag.ReturnUrl })
    </section>
</div>*@


    @section Scripts {
        @Scripts.Render("~/bundles/jqueryval")
    }
